/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package apt;

/**
 *
 * @author PhiNguyen
 */
public class Employee extends Object{
    private int id;
    private String name;
    private String bDay;
    private String phone;

    /**
     * @return the id
     */
    public int getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the bDay
     */
    public String getbDay() {
        return bDay;
    }

    /**
     * @param bDay the bDay to set
     */
    public void setbDay(String bDay) {
        this.bDay = bDay;
    }

    /**
     * @return the phone
     */
    public String getPhone() {
        return phone;
    }

    /**
     * @param phone the phone to set
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Employee() {
    }

    public Employee(int id, String name, String bDay, String phone) {
        this.id = id;
        this.name = name;
        this.bDay = bDay;
        this.phone = phone;
    }

    public static final String NL = System.getProperty("line.separator");  
    
    @Override
    public String toString() {
        
        return this.id + ";" + this.name + ";" + this.bDay + ";" + this.phone + NL;
    }
    
    
}
